// 路由懒加载 通过函数的方法 调取路径
const Home =()=>import('@/pages/Home')
const Login =()=>import('@/pages/Login')
const Register =()=>import('@/pages/Register')
const Search =()=>import('@/pages/Search')

export default [
    {
        name:'home',
        path:'/home',
        component:Home,
    },
    {
        name:'login',
        path:'/login',
        component:Login,
    },
    {
        name:'register',
        path:'/register',
        component:Register,
    },
    {
        name:'search',
        path:'/search',
        component:Search,
    },
    {
		path:'/',
		redirect:'/home'
	},


]